package com.hw.hcit;

import com.hw.hcit.conf.JTestItem;

public class JCase {

	private String name = "";
	
	private String feature = "";
	private boolean autoNext = false;
	private JTestItem ui = null;
	
	private boolean result = true;
	
	public JCase()
	{
		
	}
	
	public void resetResult()
	{
		result = true;
	}
	
	public JTestItem getUI()
	{
		return ui;
	}
	
	
	public void setUI(JTestItem item)
	{
		ui = item;
	}
	
	public void setName(String n)
	{
		name = n;
	}
	
	public String getName()
	{
		String ret = name;
		
		if(ui!=null &&  ui.getName() != null && ui.getName().length()>0)
		{
			ret = ui.getName();
		}
		
		return ret;
	}
	
	public void setResult(boolean b)
	{
		result = b;
	}
	
	public boolean getResult()
	{
		return result;
	}
	
	public void setFeature(String n)
	{
		feature = n;
	}
	
	public String getFeature()
	{
		return feature;
	}
	
	public void setAutoNext(boolean b)
	{
		autoNext = b;
	}
	
	public boolean getAutoNext()
	{
		return autoNext;
	}
}
